<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<div id="sidebar">
	<ul class="sidebar-menu on-click" id="main-menu">
		<li class="active">
			<div class="sidebar-menu-item-wrapper">
				<a href="#" data-target-page="page-dashboard"> <i class="icon-home"></i> <span>主 页</span>
				</a>
			</div>
		</li>
		<li class="inactive">
			<div class="sidebar-menu-item-wrapper" id="CHART-NAV">
				<a href="<%=request.getContextPath()%>/c?s=chart&o=demo"
						data-target-page="TPL"> <i class="icon-bar-chart"></i> <span>图表 &amp; 报告</span>
				</a>
			</div>
		</li>
		<li class="parent inactive">
			<div class="sidebar-menu-item-wrapper">
				<a href="#"> <i class="icon-briefcase"></i> <span>个人事宜</span></a>
				<ul id="MATTER-NAV">
					<li><a href="<%=request.getContextPath()%>/c?s=wf&o=create"
						data-target-page="TPL"><i class="icon-envelope-alt"></i> <span>发起流程</span></a></li>
					<li><a href="<%=request.getContextPath()%>/c?s=wf&o=matters&t=todo"
						data-target-page="TPL"><i class="icon-check-empty"></i> <span>待办事宜</span></a></li>
					<li><a href="<%=request.getContextPath()%>/c?s=wf&o=matters&t=did"
						data-target-page="TPL"><i class="icon-check"></i> <span>已办事宜</span></a></li>
				</ul>
			</div>
		</li>

		<li class="inactive">
			<div class="sidebar-menu-item-wrapper">
				<a href="#" data-target-page="desktop"> <i class="icon-dashboard"></i> <span>仪表板</span></a>
			</div>
		</li>
		<li class="parent inactive">
			<div class="sidebar-menu-item-wrapper">
				<a href="#"> <i class="icon-group"></i> <span>业务中心</span></a>
				<ul id="USER-NAV">
					<c:forEach var="m" items="${models }">
						<li><a data-target-page="TPL" href="<%=request.getContextPath()%>/c?${m.m_action }&o=list&m_id=${m.m_id}">
						<i class="icon-double-angle-right"></i> <span>${m.m_title }</span></a>
						</li>
					</c:forEach>
				</ul>
			</div>
		</li>
		<c:if test="${userinfo.ui_username eq 'admin' }">
			<li class="parent inactive">
				<div class="sidebar-menu-item-wrapper">
					<a href="#"> <i class="icon-wrench"></i> <span>系统管理</span></a>
					<ul id="SETTING-NAV">
						<li><a href="<%=request.getContextPath()%>/c?s=model&o=list"
							data-target-page="TPL"><i class="icon-lightbulb"></i> <span>模型管理</span></a></li>
						<li><a href="<%=request.getContextPath()%>/c?s=model&o=table"
							data-target-page="TPL"><i class="icon-lemon"></i> <span>业务对象</span></a></li>
						<li><a href="<%=request.getContextPath()%>/c?s=setting&o=syslog"
							data-target-page="TPL"><i class="icon-fire"></i> <span>系统日志</span></a></li>
							<li><a href="<%=request.getContextPath()%>/c?s=setting&o=port"
							data-target-page="TPL"><i class="icon-exchange"></i> <span>导入/导出</span></a></li>
						<li><a href="<%=request.getContextPath()%>/c?s=setting&o=setting"
							data-target-page="TPL"><i class="icon-cogs"></i> <span>系统设置</span></a></li>
					</ul>
				</div>
			</li>
			<li class="parent inactive">
				<div class="sidebar-menu-item-wrapper">
					<a href="#"> <i class="icon-retweet"></i> <span>工作流管理</span>
					</a>
					<ul id="WORKFLOW-NAV">
						<li><a href="<%=request.getContextPath()%>/c?s=wf&o=form&p=add"
							data-target-page="TPL"><i class="icon-edit"></i> <span>新建模板</span></a></li>
						<li><a href="<%=request.getContextPath()%>/c?s=wf&o=list"
							data-target-page="TPL"><i class="icon-list-ul"></i> <span>模板列表</span></a></li>
					</ul>
				</div>
			</li>
		</c:if>

	</ul>

	<a href="#" id="sidebar-resizer"> <i class="min icon-resize-small"></i>
		<i class="max icon-resize-full"></i>
	</a>

</div>
<!-- /#sidebar: Sidebar -->
<%
	
%>